package com.bigzero.workflow.common.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 基础实体类
 *
 * @author fanxinxiong
 * @date 2025-02-11 17:52
 **/
@Data
public class BaseEntity implements Serializable{

    private static final long serialVersionUID = 1L;

    /**主键id*/
    @Schema(description = "主键id")
    @TableId
    private String id;

    /**创建时间*/
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date createTime;

    /**修改时间*/
    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date updateTime;
}
